package com.ruoyi.basedata.service.impl;

import com.ruoyi.basedata.domain.Transfer;
import com.ruoyi.basedata.mapper.TransferMapper;
import com.ruoyi.basedata.service.ITransferService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 过户记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-07
 */
@Service
public class TransferServiceImpl implements ITransferService 
{
    @Autowired
    private TransferMapper transferMapper;

    /**
     * 查询过户记录
     * 
     * @param ID 过户记录主键
     * @return 过户记录
     */
    @Override
    public Transfer selectTransferByID(Long ID)
    {
        return transferMapper.selectTransferByID(ID);
    }

    /**
     * 查询过户记录列表
     * 
     * @param transfer 过户记录
     * @return 过户记录
     */
    @Override
    public List<Transfer> selectTransferList(Transfer transfer)
    {
        return transferMapper.selectTransferList(transfer);
    }

    /**
     * 新增过户记录
     * 
     * @param transfer 过户记录
     * @return 结果
     */
    @Override
    public int insertTransfer(Transfer transfer)
    {
        return transferMapper.insertTransfer(transfer);
    }

    /**
     * 修改过户记录
     * 
     * @param transfer 过户记录
     * @return 结果
     */
    @Override
    public int updateTransfer(Transfer transfer)
    {
        return transferMapper.updateTransfer(transfer);
    }

    /**
     * 批量删除过户记录
     * 
     * @param IDs 需要删除的过户记录主键
     * @return 结果
     */
    @Override
    public int deleteTransferByIDs(Long[] IDs)
    {
        return transferMapper.deleteTransferByIDs(IDs);
    }

    /**
     * 删除过户记录信息
     * 
     * @param ID 过户记录主键
     * @return 结果
     */
    @Override
    public int deleteTransferByID(Long ID)
    {
        return transferMapper.deleteTransferByID(ID);
    }
}
